package main;
import model.ClassVersion;
import model.VersionInvestigator;
import ui.FileChooserPanel;

public class Main {
	
	/**
	 * javap -verbose Demo
	 * */
	public static void main(String[] args)  {
		
		System.out.print("Current JVM Compiler Level: ");
		System.out.print(System.getProperty("java.class.version")+ " ");
		System.out.println("[jdk " + ClassVersion.getJDKVersionOfClassVersion(System.getProperty("java.class.version"))+"]");
		
		
		VersionInvestigator investigator = new VersionInvestigator();
		if (args.length > 0) {
			for (String arg : args) {
				System.out.println("not yet implemented, sorry!");
				System.out.println(arg);
			}
		}
		else {
			FileChooserPanel chooserPanel = new FileChooserPanel(investigator);
			chooserPanel.createAndShowGUI();
		}
		
	}
	
}